import hmac

salt = "@#X1123Xssdf%2223223"


def md5_encode(str_val):
    """
    获取md5加密结果
    :param str_val:
    :return:
    """
    h = hmac.new(salt.encode('utf8'), str_val.encode('utf8'), digestmod='MD5')
    return h.hexdigest()
